/**
 * 
 */
package com.org.javabody.array.arraydemo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * @author Administrator
 *
 */
interface MyArray {
	Double[] D = {1.2,1.4,5.3,3.1,5.0,3.0,2.0,1.0,4.1,4.0,3.0,2.0,1.0,4.0,4.0,1.0,4.0,1.0,4.0};
	void getDouble();
}
public class ArrayDemo implements MyArray{
	private final static Logger log = LoggerFactory.getLogger(ArrayDemo.class); 
	public void getDouble(){
		Double sum = 0D;
		//int len = D.length;
		for(int i=0, len = D.length; i < len ; i++) {
			sum = sum + D[i];
		}
		log.info(sum+"");		
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		MyArray a = new ArrayDemo();
		a.getDouble();
	}

}
